package kr.hkit.info.powerjava.ch15;

import java.awt.image.BufferedImage;
import java.io.File;

import javax.imageio.ImageIO;
import javax.swing.JFrame;

public class MyImageframe extends JFrame {
	private BufferedImage img = null ;
	
	public MyImageframe(){
		setTitle("Image Load");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		img = ImageIO.read(new File("cake.jpg"));
		add(new Mypanel2());
		pack();
		setVisible(true);
	}
	
	class Mypanel2() extends JPanel{
		public void paint(G)
		
	}
}
